<?php
class Answer_Component_Controller_Member_All extends Phpfox_Component
{
    public function process()
    {
        Phpfox::getService('answer.question')->getSectionMenu();
        $iLimit = 20;
        if (!$iPage = $this->request()->get('page')) {
            $iPage = 1;
        }

        $aMember = Phpfox::getService('answer.point')->getMember($iPage, $iLimit);
        Phpfox::getLib('pager')->set(array('page' => $iPage, 'size' => $iLimit, 'count' => $aMember['count']));
        $this->template()
            ->setTitle(Phpfox::getPhrase('answer.members_ranking'))
            ->setBreadcrumb(Phpfox::getPhrase('answer.answers'), $this->url()->makeUrl('answer'), false)
            ->setBreadcrumb(Phpfox::getPhrase('answer.all_members'), $this->url()->makeUrl('answer.member.all'), true)
            ->setHeader(array(
            'answer.css' => 'module_answer'
        ))
            ->assign('aMembers', $aMember['data']);
    }
}